Allow to disable Xinerama. (#348065, Diego Pettenò)
authorMatthias Clasen <mclasen@redhat.com>
Sun, 3 Jun 2007 04:54:15 +0000 (04:54 +0000)
committerMatthias Clasen <matthiasc@src.gnome.org>
Sun, 3 Jun 2007 04:54:15 +0000 (04:54 +0000)
2007-06-03  Matthias Clasen  <mclasen@redhat.com>

        * configure.in: Allow to disable Xinerama.  (#348065, Diego Pettenò)

svn path=/trunk/; revision=18012

ChangeLog
configure.in

index 3a4228b5852a821bb40adc2ba9e823b234c08ddb..a6c8f29eee99f2de10ff3bcba471722671957be2 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2007-06-03  Matthias Clasen  <mclasen@redhat.com>
+
+       * configure.in: Allow to disable Xinerama.  (#348065, Diego Pettenò)
+
 2007-06-03  Xan Lopez  <xan@gnome.org>
 
        * gtk/gtknotebook.c: remove index parameter in gtk_notebook_switch_page
index c9ee596becb5e893c34d37e7983ff647810a27f9..d91766db09b02a634c9d470e1dd56f062c029c55 100644 (file)
@@ -199,6 +199,10 @@ AC_ARG_ENABLE(xkb,
               [AC_HELP_STRING([--enable-xkb],
                               [support XKB [default=maybe]])],,
               [enable_xkb="maybe"])
+AC_ARG_ENABLE(xinerama,
+              [AC_HELP_STRING([--enable-xinerama],
+                             [support xinerama extension if available [default=yes]])],,
+              [enable_xinerama="yes"])
 AC_ARG_ENABLE(rebuilds,
               [AC_HELP_STRING([--disable-rebuilds],
                               [disable all source autogeneration rules])],,
@@ -1230,12 +1234,12 @@ if test "x$gdktarget" = "xx11"; then
     fi
   fi
 
-  # Check for Xinerama extension (Solaris impl or Xfree impl)
-
-  gtk_save_cppflags="$CPPFLAGS"
-  CPPFLAGS="$CPPFLAGS $x_cflags"
+  if test "x$enable_xinerama" = "xyes"; then
+    # Check for Xinerama extension (Solaris impl or Xfree impl)
+    gtk_save_cppflags="$CPPFLAGS"
+    CPPFLAGS="$CPPFLAGS $x_cflags"
   
-  case "$host" in
+    case "$host" in
       *-*-solaris*)
           # Check for solaris
          AC_MSG_CHECKING(for Xinerama support on Solaris)
@@ -1278,8 +1282,9 @@ if test "x$gdktarget" = "xx11"; then
             AC_MSG_RESULT(no)
          fi
          ;;
-  esac
-
+    esac
+  fi
+  
   # set up things for XInput
 
   if test "x$with_xinput" = "xxfree" || test "x$with_xinput" = "xyes"; then